package com.boot.project.service;

import com.boot.project.domain.InfoDo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface InfoService {
    List<InfoDo> rotation(Integer infoType);
    List<InfoDo> list(Integer pageNum, Integer pageSize, Integer infoType);
    Integer count(Integer infoType);
    InfoDo getInfo(Long id);
    String upload(MultipartFile file, Long infoType) throws IOException;
    Map<String, Object> saveInfo(InfoDo infoDo);
    Map<String, Object> deleteInfo(Long id);
}
